import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';
import './widgets/HGridItem.dart' show HomeGridItem;

class HomePage extends StatelessWidget {
  const HomePage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(),
      body: GridView.count(
        crossAxisCount: 4,
        children: const [
          HomeGridItem(icon: Icons.bluetooth,text: '蓝牙',url: 'blue'),
          HomeGridItem(icon: Icons.wifi,text: 'TCP',url: 'tcp'),
          HomeGridItem(icon: Icons.broadcast_on_home,text: 'UDP',url: 'udp'),
        ],
      ),
    );
  }
}

